package ctn.dao.inteface;

import java.util.List;
import java.util.Set;

import ctn.hibernate.po.CtnUser;

public interface CTNUserDao {
	CtnUser getUserByID(Long ID);
	CtnUser getUserByName(String Name);
	CtnUser getUserByEmail(String Email);
	public CtnUser saveUser(CtnUser user);
	public CtnUser updateUser(CtnUser user);
	public void delUser(CtnUser user);
	Set<CtnUser> getUserByGrpID(Long grpID);
	public int validateUserName(String username);
	public int validateUserEmail(String email);
	public List<CtnUser> getUsers(CtnUser CtnUser);
	public boolean validatePwd(final String pwd,final Long id);
	public void resetEmailOrName(final String name,final String email,final Long id);
	List<CtnUser> getGrpUsers(Long l);
}
